<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>Mine Sweeper Clone: Riferimenti per il file common.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Mine Sweeper Clone
   &#160;<span id="projectnumber">0.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.4 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="pages.html"><span>Pagine&#160;collegate</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Definizioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Definizioni</a> &#124;
<a href="#func-members">Funzioni</a>  </div>
  <div class="headertitle">
<div class="title">Riferimenti per il file common.h</div>  </div>
</div><!--header-->
<div class="contents">

<p>Header del modulo per la gestione delle parti comuni.  
<a href="#details">Continua...</a></p>
<div class="textblock"><code>#include &lt;gtk/gtk.h&gt;</code><br/>
</div>
<p><a href="common_8h_source.html">Vai al codice sorgente di questo file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Definizioni</h2></td></tr>
<tr class="memitem:ac12fbd3ce92360f7a8fdfd953f0c1f3d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ac12fbd3ce92360f7a8fdfd953f0c1f3d">MAIN_GLADE_FILE</a>&#160;&#160;&#160;&quot;minesweeperclone.glade&quot;</td></tr>
<tr class="memdesc:ac12fbd3ce92360f7a8fdfd953f0c1f3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Definizione del nome del file per l'interfaccia grafica.  <a href="#ac12fbd3ce92360f7a8fdfd953f0c1f3d">Continua...</a><br/></td></tr>
<tr class="separator:ac12fbd3ce92360f7a8fdfd953f0c1f3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21ad8fd60380019d4ae5133842c9ca14"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a21ad8fd60380019d4ae5133842c9ca14">RECORDS_INI_FILE</a>&#160;&#160;&#160;&quot;records.ini&quot;</td></tr>
<tr class="memdesc:a21ad8fd60380019d4ae5133842c9ca14"><td class="mdescLeft">&#160;</td><td class="mdescRight">Definizione del nome del file per la gestione dei records.  <a href="#a21ad8fd60380019d4ae5133842c9ca14">Continua...</a><br/></td></tr>
<tr class="separator:a21ad8fd60380019d4ae5133842c9ca14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ea5494b34ff85745447e926e4e8deb4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a1ea5494b34ff85745447e926e4e8deb4">INI_KEY_NAME</a>&#160;&#160;&#160;&quot;name&quot;</td></tr>
<tr class="memdesc:a1ea5494b34ff85745447e926e4e8deb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Definizione della chiave per l'IO del campo del nome.  <a href="#a1ea5494b34ff85745447e926e4e8deb4">Continua...</a><br/></td></tr>
<tr class="separator:a1ea5494b34ff85745447e926e4e8deb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80f8486767afc23a04d3860421ac7747"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a80f8486767afc23a04d3860421ac7747">INI_KEY_SECONDS</a>&#160;&#160;&#160;&quot;seconds&quot;</td></tr>
<tr class="memdesc:a80f8486767afc23a04d3860421ac7747"><td class="mdescLeft">&#160;</td><td class="mdescRight">Definizione della chiave per l'IO del campo dei secondi.  <a href="#a80f8486767afc23a04d3860421ac7747">Continua...</a><br/></td></tr>
<tr class="separator:a80f8486767afc23a04d3860421ac7747"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab83bc2b0394866563b54ae5c5916008a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ab83bc2b0394866563b54ae5c5916008a">IMG_BUTTON_DIM</a>&#160;&#160;&#160;20</td></tr>
<tr class="memdesc:ab83bc2b0394866563b54ae5c5916008a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Definizione della dimensione delle singole caselle sulla griglia.  <a href="#ab83bc2b0394866563b54ae5c5916008a">Continua...</a><br/></td></tr>
<tr class="separator:ab83bc2b0394866563b54ae5c5916008a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a926992d0fd0afb62e8067639ee57fc78"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a926992d0fd0afb62e8067639ee57fc78">IMG_STATUS_DIM</a>&#160;&#160;&#160;28</td></tr>
<tr class="memdesc:a926992d0fd0afb62e8067639ee57fc78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Definizione della dimensione dell'immagine dello stato della partita corrente.  <a href="#a926992d0fd0afb62e8067639ee57fc78">Continua...</a><br/></td></tr>
<tr class="separator:a926992d0fd0afb62e8067639ee57fc78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed5b93a797dd56009a4d6bce34235f2e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#aed5b93a797dd56009a4d6bce34235f2e">MAX_COUNTED_TIME</a>&#160;&#160;&#160;3599</td></tr>
<tr class="memdesc:aed5b93a797dd56009a4d6bce34235f2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Definizione del tempo massimo visualizzato di ogni partita (59m.59s = 3599)  <a href="#aed5b93a797dd56009a4d6bce34235f2e">Continua...</a><br/></td></tr>
<tr class="separator:aed5b93a797dd56009a4d6bce34235f2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49d85811d1043ff1f3d7df4be3d90138"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a>&#160;&#160;&#160;extern &quot;C&quot;</td></tr>
<tr class="memdesc:a49d85811d1043ff1f3d7df4be3d90138"><td class="mdescLeft">&#160;</td><td class="mdescRight">Definizioni per la compilazione in ambienti Win e Linux.  <a href="#a49d85811d1043ff1f3d7df4be3d90138">Continua...</a><br/></td></tr>
<tr class="separator:a49d85811d1043ff1f3d7df4be3d90138"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Funzioni</h2></td></tr>
<tr class="memitem:ab0de9fd655002f0a1ccb34d8f88933b8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_8h.html#ab0de9fd655002f0a1ccb34d8f88933b8">error_dialog</a> (const gchar *amessage)</td></tr>
<tr class="memdesc:ab0de9fd655002f0a1ccb34d8f88933b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visualizza finestra di errore.  <a href="#ab0de9fd655002f0a1ccb34d8f88933b8">Continua...</a><br/></td></tr>
<tr class="separator:ab0de9fd655002f0a1ccb34d8f88933b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Descrizione dettagliata</h2>
<div class="textblock"><p>Header del modulo per la gestione delle parti comuni. </p>
<p>In questo file vengono gestite le parti comuni a tutto il programma come:</p>
<ul>
<li>percorsi delle risorse esterne utilizzate dal programma</li>
<li>definizioni di compilazione per ambiente unix/windows</li>
<li>definizioni delle dimensioni grafiche</li>
<li>gestione della visualizzazione di finestre di stato (dialogs) </li>
</ul>
</div><h2 class="groupheader">Documentazione delle definizioni</h2>
<a class="anchor" id="ab83bc2b0394866563b54ae5c5916008a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IMG_BUTTON_DIM&#160;&#160;&#160;20</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definizione della dimensione delle singole caselle sulla griglia. </p>

</div>
</div>
<a class="anchor" id="a926992d0fd0afb62e8067639ee57fc78"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IMG_STATUS_DIM&#160;&#160;&#160;28</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definizione della dimensione dell'immagine dello stato della partita corrente. </p>

</div>
</div>
<a class="anchor" id="a1ea5494b34ff85745447e926e4e8deb4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define INI_KEY_NAME&#160;&#160;&#160;&quot;name&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definizione della chiave per l'IO del campo del nome. </p>

</div>
</div>
<a class="anchor" id="a80f8486767afc23a04d3860421ac7747"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define INI_KEY_SECONDS&#160;&#160;&#160;&quot;seconds&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definizione della chiave per l'IO del campo dei secondi. </p>

</div>
</div>
<a class="anchor" id="ac12fbd3ce92360f7a8fdfd953f0c1f3d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAIN_GLADE_FILE&#160;&#160;&#160;&quot;minesweeperclone.glade&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definizione del nome del file per l'interfaccia grafica. </p>

</div>
</div>
<a class="anchor" id="aed5b93a797dd56009a4d6bce34235f2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX_COUNTED_TIME&#160;&#160;&#160;3599</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definizione del tempo massimo visualizzato di ogni partita (59m.59s = 3599) </p>

</div>
</div>
<a class="anchor" id="a49d85811d1043ff1f3d7df4be3d90138"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MODULE_EXPORT&#160;&#160;&#160;extern &quot;C&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definizioni per la compilazione in ambienti Win e Linux. </p>
<p>Per la compilazione in ambiente WIN32 non basta dichiarare le funzioni che gestiscono gli eventi nella modalità classica <em>extern "C"</em>, ma bisogna aggiungere <em>__declspec(dllexport)</em> e quindi si è creata la definizione <a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138" title="Definizioni per la compilazione in ambienti Win e Linux. ">MODULE_EXPORT</a> che, in base all'ambiente di compilazione, sistema il modo di dichiarare le funzioni. </p>

</div>
</div>
<a class="anchor" id="a21ad8fd60380019d4ae5133842c9ca14"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RECORDS_INI_FILE&#160;&#160;&#160;&quot;records.ini&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definizione del nome del file per la gestione dei records. </p>

</div>
</div>
<h2 class="groupheader">Documentazione delle funzioni</h2>
<a class="anchor" id="ab0de9fd655002f0a1ccb34d8f88933b8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void error_dialog </td>
          <td>(</td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>amessage</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Visualizza finestra di errore. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">amessage</td><td>Messaggio da visualizzare </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Gio 3 Apr 2014 21:57:36 per Mine Sweeper Clone da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
</small></address>
</body>
</html>
